<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!doctype html>
<html class="no-js">
<head>
<title>我的资料</title>

<%@ include file="../mobile_inc.jsp"%>
<script src="/mobile/js/infinitedropdown.min.js"></script>

<style>
.am-direction-nav {
	display: none;
}

#submitButton {
	float: right;
	list-style-type: none;
	margin-top: 5px
}

#myform {
	margin-left: 10px;
	margin-right: 10px;
	width: 90%;
	margin:auto;
}

#myform table tbody tr td input {
	font-size: 15px
}

#myform table tbody tr td {
	color: gray
}

#inTable tr td {
	color: gray
}
.login_logo
	{
	 width: 90%; 
    height: 45px;
  /*   background-image: url(../image/login/login_logo.png);
    background-repeat: no-repeat;
    background-size: 100% 45px; */  
    background-color: #eee;
    border-radius: 20px;
   margin:auto;
	}
 
 .login_logo button
  	{
  	height: 45px;
  	width: 100%;
  	background: transparent;
  	border:0px;
  	color:#999;
  	font-size:20px;
 	}
</style>
<script>
	//返回上一页	
	function back() {
		history.back()
	}
	
	function save() {
		var fun_ret;
		var vals = $('#myform').serialize();
		console.log(vals);
		$.ajax({
			async : false,
			type : "POST",
			url : '${ctx}/mobile/savePerson',
			data : vals,
			cache : false,
			dataType : 'json',
			success : function(data) {
				console.log(data);
				if (data == true) {
					alert("修改成功");
					
				} else {
					fun_ret = true;
				}
			}
		});
	return fun_ret;
}
</script>
</head>
<body style="background:#f0fff0">
	<!-- 上部 -->
	<header data-am-widget="header" class="am-header am-header-default joan-head" style="background:#FFB6C1">

		<div class="am-header-left am-header-nav">

			<a href="javascript:history.back()" class=""> <i
				class="am-icon-mail-reply"></i>
			</a>
		</div>
		<h1 class="am-header-title">
			<a href="#title-link" class=""> 我的资料 </a>
		</h1>

		<div class="am-header-right am-header-nav">
			<a href="${ctx}/" target="_self" class=""> <i
				class="am-header-icon am-icon-home"></i>
			</a>
	</header>

	<form class="am-form" id="myform" method="POST" name="myform" style="padding-top:40%">
		<input  type="hidden"    name="custId"  value="${sysCustomer.custId }"/>
		<table class="am-table">
			<tbody>
				<tr>
					<td>用户名</td>
					<td><input name="custName"
						style="background: transparent; border: 0" 
						value="${sysCustomer.custName }" /></td>
				</tr>
				
				<tr>
					<td>联系电话</td>
					<td><input name="phone"
						style="background: transparent; border: 0" 
						value="${sysCustomer.phone }" /></td>
				</tr>
				<tr>
					<td>密码修改</td>
					<td><input name="password"
						style="background: transparent; border: 0; "
						 value="" /></td>
				</tr>
			
				<tr>
					<td></td>
					<td></td>
				</tr>
			</tbody>
		</table>
</form>
<div class="login_logo"  onclick="save();"><button>保存修改</button></div>
	
</body>
</html>
